import axios from "axios";
// 获取浏览量前几的文章、
export function getTopbrowse() {
    return (
        axios.get('api/page/admin/pageInfo/top10Page')
    )
}
// 获取点赞量前几的文章、
export function getToptags() {
    return (
        axios.get('api/page/admin/pageInfo/top10Page')
    )
}
// 获取分类文章数量
export function getSortlist() {
    const{id} =  JSON.parse(localStorage.getItem("token"))
    return (
        axios({
            url: 'api/page/admin/pageInfo/GetPublishedPagesNumOrderByCategory',
            method: 'GET',
            params: {
                userId:id
            }
        })
    )
}